:root{
    --primary-color: #ffffff;
    --secondary-color: #00000080;
    --tertiary-color: #3e0bcd80;
    --quaternary-color: rgb(0, 0, 0);
    /* --quinary-color: rgb(222, 222, 222);   */
    --quinary-color: #f4f4f4;
    --fifth-color: rgb(255, 255, 255);
}
.dark-mode{
    --primary-color: #1e1f23;
    --secondary-color: #ffffff80;
    --tertiary-color: #ffffff80;
    --quaternary-color: #ffffff;
    --quinary-color: #373942;
    --fifth-color: rgb(0, 0, 0);
    
}   

/* Dark mode toggle switch styles */
.switch {
    font-size: 17px;
    position: relative;
    display: inline-block;
    width: 64px;
    height: 34px;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #73C0FC;
    transition: .4s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 30px;
    width: 30px;
    border-radius: 20px;
    left: 2px;
    bottom: 2px;
    z-index: 2;
    background-color: #e8e8e8;
    transition: .4s;
}

.sun svg {
    position: absolute;
    top: 6px;
    left: 36px;
    z-index: 1;
    width: 24px;
    height: 24px;
}

.moon svg {
    fill: #73C0FC;
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 1;
    width: 24px;
    height: 24px;
}

.sun svg {
    animation: rotate 15s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}

.moon svg {
    animation: tilt 5s linear infinite;
}

@keyframes tilt {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

.input:checked + .slider {
    background-color: #183153;
}

.input:focus + .slider {
    box-shadow: 0 0 1px #183153;
}

.input:checked + .slider:before {
    transform: translateX(30px);
}

body {
    background-color: var(--primary-color);
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 600px !important;
    margin: 20px auto;
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
}

.step {
    display: none;  /* Hide all steps by default */
}

.step.active {
    display: block; /* Show only active step */
    color: var(--quaternary-color);
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    height: 55px;
    color: var(--quaternary-color);
    font-size: 20px;
    margin: 10px 0;
    border: none;
    border-radius: 15px;
    border-bottom: none;
    background-color: var(--quinary-color);
    box-sizing: border-box;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
input:focus,
select:focus,
textarea:focus {
outline: none;
border: 2px solid #7c4bda;
box-shadow: none; /* Remove any shadow on focus */
}
select{
height: 50px;
/* width: 100%; */
width: 104%;
    padding: 10px;
    
    color:  var(--quaternary-color);
    font-size: 20px;
    margin: 10px 0;
    border: none;
    border-radius: 15px;
    border-bottom: none;
    background-color: var(--quinary-color);
}

input:hover,
select:hover,
textarea:hover {
box-shadow: none; /* Remove the hover effect */
}

input:focus,
select:focus,
textarea:focus {
outline: none;
border: 2px solid #7c4bda;
box-shadow: none; /* Remove any shadow on focus */
}

.input-group input:hover {
box-shadow: none; /* Remove hover effect for measurement inputs */
}

.input-group input:focus {
outline: none;
border: 2px solid #7c4bda;
box-shadow: none;
}

button {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

.back {
    background-color: #6c757d;
}

.back:hover {
    background-color: #5a6268;
}

/* Updated Loader container styles */
.loader-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(30, 31, 35, 0.9);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.loader-container.active {
    opacity: 1;
    pointer-events: all;
    display: flex;
}

.loader-message {
    color: #ffffff;
    text-align: center;
    margin-top: 30px;
    max-width: 400px;
    width: 100%;
    padding: 0 15px;
}

.loader-main-text {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.loader-sub-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.loader-message span {
    color: #7c4bda;
    font-weight: 600;
}

/* Center the boxes in the middle of screen */
.boxes {
    --size: 32px;
    --duration: 800ms;
    height: calc(var(--size) * 2);
    width: calc(var(--size) * 3);
    position: relative;
    transform-style: preserve-3d;
    transform-origin: 50% 50%;
    margin: auto;
    transform: rotateX(60deg) rotateZ(45deg) rotateY(0deg) translateZ(0px);
}

.boxes .box {
    width: var(--size);
    height: var(--size);
    top: 0;
    left: 0;
    position: absolute;
    transform-style: preserve-3d;
}

.boxes .box:nth-child(1) {
    transform: translate(100%, 0);
    animation: box1 var(--duration) linear infinite;
}

.boxes .box:nth-child(2) {
    transform: translate(0, 100%);
    animation: box2 var(--duration) linear infinite;
}

.boxes .box:nth-child(3) {
    transform: translate(100%, 100%);
    animation: box3 var(--duration) linear infinite;
}

.boxes .box:nth-child(4) {
    transform: translate(200%, 0);
    animation: box4 var(--duration) linear infinite;
}

.boxes .box > div {
    --background: #7c4bda;
    --top: auto;
    --right: auto;
    --bottom: auto;
    --left: auto;
    --translateZ: calc(var(--size) / 2);
    --rotateY: 0deg;
    --rotateX: 0deg;
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--background);
    top: var(--top);
    right: var(--right);
    bottom: var(--bottom);
    left: var(--left);
    transform: rotateY(var(--rotateY)) rotateX(var(--rotateX)) translateZ(var(--translateZ));
    box-shadow: 0 0 20px rgba(124, 75, 218, 0.3);
}

.boxes .box > div:nth-child(1) {
    --top: 0;
    --left: 0;
}

.boxes .box > div:nth-child(2) {
    --background: #9c7ae0;
    --right: 0;
    --rotateY: 90deg;
}

.boxes .box > div:nth-child(3) {
    --background: #7c4bda;
    --rotateX: -90deg;
}

.boxes .box > div:nth-child(4) {
    --background: #9c7ae0;
    --top: 0;
    --left: 0;
    --translateZ: calc(var(--size) * 3 * -1);
}

@keyframes box1 {
    0%, 50% {
        transform: translate(100%, 0);
    }
    100% {
        transform: translate(200%, 0);
    }
}

@keyframes box2 {
    0% {
        transform: translate(0, 100%);
    }
    50% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(100%, 0);
    }
}

@keyframes box3 {
    0%, 50% {
        transform: translate(100%, 100%);
    }
    100% {
        transform: translate(0, 100%);
    }
}

@keyframes box4 {
    0% {
        transform: translate(200%, 0);
    }
    50% {
        transform: translate(200%, 100%);
    }
    100% {
        transform: translate(100%, 100%);
    }
}

/* Add these new styles */
.logo-container {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
}

.logo-container img {
    max-width: 600px;  /* Increased from 500px */
    width: 100%;
    height: auto;
}

@media only screen and (max-width: 768px) {
    .logo-container img {
        max-width: 400px;  /* Increased from 270px */
        width: 100%;
        height: auto;
    }
}

@media only screen and (max-width: 480px) {
    .logo-container img {
        max-width: 300px;  /* Increased from 200px */
        width: 100%;
        height: auto;
    }
}

/* From Uiverse.io by zjssun */ 
.next {
padding: 10px 20px;
text-transform: uppercase;
border-radius: 8px;
font-size: 17px;
font-weight: 500;
color: var(--secondary-color);
text-shadow: none;
background: transparent;
cursor: pointer;
box-shadow: transparent;
border: 2px solid var(--tertiary-color);
transition: 0.5s ease;
user-select: none;
min-width: 100px;
height: 35px;
display: flex;
align-items: center;
justify-content: center;
}

.next:hover,
.next:focus {
color: #ffffff;
background: #7c4bda;
border: 1px solid #7c4bda;
text-shadow: 0 0 5px #ffffff, 0 0 10px #ffffff, 0 0 20px #ffffff;
box-shadow: 0 0 5px #7c4bda, 0 0 20px #7c4bda, 0 0 50px #7c4bda,
0 0 100px #7c4bda;
}
/* From Uiverse.io by JaydipPrajapati1910 */ 
.button {
--width: 100px;
--height: 35px;
--button-color: #7c4bda;
width: var(--width);
height: var(--height);
background: var(--button-color);
position: relative;
text-align: center;
border-radius: 0.45em;
font-family: "Arial";
transition: background 0.3s;
display: flex;
align-items: center;
justify-content: center;
}

.button-wrapper {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
position: relative;
overflow: hidden;
}

.text {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
transition: top 0.5s;
}

.icon {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
position: absolute;
top: 100%;
left: 0;
transition: top 0.5s;
}

.icon svg {
width: 24px;
height: 24px;
color: #fff;
}

.button:hover {
background: #7c4bda;
}

.button:hover .text {
top: -100%;
}

.button:hover .icon {
top: 0;
}

.button-container {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 20px;
width: 100%;
gap: 20px;
}

.units-container {
margin-bottom: 15px;
}

.unit-group {
display: flex;
gap: 20px;
}

.unit-toggle {
display: flex;
background-color: #1a1b1f;
border-radius: 8px;
overflow: hidden;
width: 200px;
}

.unit-option {
flex: 1;
padding: 10px 20px;
text-align: center;
cursor: pointer;
color: #ffffff80;
transition: all 0.3s ease;
user-select: none;
}

.unit-option.active {
background-color: #3d3f46;
color: #ffffff;
}

.unit-select {
flex: 1;
background-color: #2d2f35; /* Darker than input background */
height: 40px;
padding: 5px 10px;
border-radius: 15px;
border: none;
color: #ffffff;
font-size: 16px;
cursor: pointer;
}

.unit-select option {
background-color: #3d3f46; /* Same as input background */
}

.unit-select:focus {
outline: none;
border: 2px solid #7c4bda;
}

.unit-select:hover {
box-shadow: 10px 0 20px rgba(124, 75, 218, 0.6);
}

.units-selection {
display: flex;
gap: 20px;
    margin: 20px 0 40px;
    justify-content: center;
}

.unit-pair {
display: flex;
background: #1a1b1f;
border-radius: 8px;
overflow: hidden;
}

.unit-btn {
padding: 10px 30px;
cursor: pointer;
    color: var(--secondary-color);
transition: all 0.3s ease;
user-select: none;
    background-color: var(--fifth-color);
}

.unit-btn:hover {
color: #7c4bda; /* Theme color on hover */
}

.unit-btn.active {
background: var(--quinary-color);
color: var(--quaternary-color);
}

.unit-btn.active:hover {
color: #7c4bda; /* Theme color on hover even when active */
}

h2 {
color: var(--quaternary-color);
margin: 20px 0 10px;
font-weight: normal;
}

.measurement-inputs {
position: relative;
    width: 100%;
    box-sizing: border-box;
}

.input-group {
display: none;
justify-content: center;
    gap: 10px;
align-items: center;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.input-group.active {
display: flex;
}

.input-wrapper {
position: relative;
    flex: 1;
    min-width: 120px;
    max-width: 200px;
    box-sizing: border-box;
}

.input-wrapper input {
    width: 100%;
    padding: 12px;
    padding-right: 45px;
    background: var(--primary-color);
    border: 2px solid transparent;
    border-radius: 12px;
    color: var(--quaternary-color);
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-wrapper input:focus {
    border-color: #7c4bda;
    box-shadow: 0 0 0 4px rgba(124, 75, 218, 0.1);
}

.input-wrapper input::placeholder {
    color: var(--secondary-color);
    font-weight: 500;
}

.unit-label {
position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 500;
pointer-events: none;
}

/* Special styling for feet/inches */
.height-feet {
gap: 10px;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.height-feet .input-wrapper {
    flex: 0 1 calc(50% - 5px);
    min-width: 100px;
    max-width: 150px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .measurement-section {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
}

    .measurement-card {
        padding: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .input-group {
        flex-direction: row;
        gap: 10px;
        width: 100%;
    }

    .input-wrapper {
        width: 100%;
        max-width: none;
}

    .height-feet {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
width: 100%;
}

    .height-feet .input-wrapper {
        flex: 0 1 calc(50% - 5px);
        max-width: calc(50% - 5px);
}

    .unit-btn {
        padding: 10px 15px;
        font-size: 14px;
    }

    .measurement-header h2 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .measurement-section {
        padding: 0 5px;
}

    .measurement-card {
        padding: 12px;
}

    .input-wrapper input {
        font-size: 14px;
        padding: 10px;
        padding-right: 35px;
    }

    .height-feet {
        flex-direction: row;
        gap: 8px;
    }

    .height-feet .input-wrapper {
        flex: 0 1 calc(50% - 4px);
        max-width: calc(50% - 4px);
    }

    .unit-label {
        font-size: 12px;
        right: 10px;
    }
}

/* Dark mode adjustments */
.dark-mode .measurement-card {
    background: var(--quinary-color);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .unit-pair {
    background: var(--quinary-color);
}

.dark-mode .unit-btn {
    background: var(--primary-color);
}

.dark-mode .input-wrapper input {
    background: var(--primary-color);
    color: var(--quaternary-color);
}

.dark-mode .input-wrapper input::placeholder {
    color: var(--secondary-color);
}

/* Update placeholder styles to be more grey */
input::placeholder {
    color: var(--secondary-color);
opacity: 1;
font-weight: 600;
font-size: 22px;
text-align: left;
}

input::-webkit-input-placeholder {
    color: var(--secondary-color);
font-weight: 600;
font-size: 22px;
text-align: left;
}

input::-moz-placeholder {
    color: var(--secondary-color);
font-weight: 600;
font-size: 22px;
text-align: left;
}

input:-ms-input-placeholder {
    color: var(--secondary-color);
font-weight: 600;
font-size: 22px;
text-align: left;
}

/* Remove spinner arrows from number inputs */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}

input[type="number"] {
-moz-appearance: textfield; /* Firefox */
}

/* Add this new style for target weight input */
input[name="tweight"] {
width: 200px !important;
display: block;
margin: 10px auto;
}

/* Add these new styles for progress indicator */
.progress-container {
width: 100%;
margin: 20px 0;
padding: 0 20px;
}

.progress-bar {
width: 100%;
height: 6px;
background: #3d3f46;
border-radius: 3px;
position: relative;
}

.progress-fill {
position: absolute;
height: 100%;
background: #7c4bda;
border-radius: 3px;
transition: width 0.3s ease;
}

.progress-steps {
display: flex;
justify-content: space-between;
margin-top: 10px;
}

.step-indicator {
width: 25px;
height: 25px;
border-radius: 50%;
background: #3d3f46;
display: flex;
align-items: center;
justify-content: center;
color: #ffffff80;
font-size: 12px;
position: relative;
z-index: 1;
}

.step-indicator.active {
background: #7c4bda;
color: #ffffff;
}

.step-indicator.completed {
background: #7c4bda;
color: #ffffff;
}

.step-label {
position: absolute;
top: 30px;
left: 50%;
transform: translateX(-50%);
white-space: nowrap;
font-size: 12px;
color: #ffffff80;
}

.step-indicator.active .step-label,
.step-indicator.completed .step-label {
color: #ffffff;
}

/* Timeline Progress Styles */
.timeline-container {
width: 100%;
margin: 40px 0;
position: relative;
padding: 20px 0;
}

.timeline {
display: flex;
justify-content: space-between;
align-items: center;
position: relative;
}

.timeline::before {
content: '';
position: absolute;
top: 50%;
left: 0;
right: 0;
height: 2px;
background: #3d3f46;
transform: translateY(-50%);
z-index: 1;
}

.timeline-step {
position: relative;
z-index: 2;
display: flex;
flex-direction: column;
align-items: center;
cursor: pointer;
transition: all 0.3s ease;
}

.timeline-icon {
width: 50px;
height: 50px;
border-radius: 50%;
background: var(--quinary-color);
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 10px;
border: 2px solid #3d3f46;
transition: all 0.3s ease;
}

.timeline-icon svg {
width: 24px;
height: 24px;
color: var(--secondary-color);
transition: all 0.3s ease;
}

.timeline-step.active .timeline-icon {
background: #7c4bda;
border-color: #7c4bda;
transform: scale(1.1);
box-shadow: 0 0 20px rgba(124, 75, 218, 0.3);
}

.timeline-step.completed .timeline-icon {
background: #7c4bda;
border-color: #7c4bda;
}

.timeline-step.active .timeline-icon svg,
.timeline-step.completed .timeline-icon svg {
color: #ffffff;
}

.timeline-label {
font-size: 12px;
color: var(--secondary-color);
text-align: center;
margin-top: 5px;
transition: all 0.3s ease;
}

.timeline-step.active .timeline-label,
.timeline-step.completed .timeline-label {
color: var(--quaternary-color);
}

.timeline-progress {
position: absolute;
top: 50%;
left: 0;
height: 2px;
background: #7c4bda;
transform: translateY(-50%);
z-index: 1;
transition: width 0.3s ease;
}

@media (max-width: 768px) {
.timeline {
overflow-x: auto;
padding: 0 20px;
justify-content: flex-start;
gap: 20px;
}
.timeline::before {
display: none;
}
.timeline-step {
min-width: 80px;
}
}

/* Mobile Progress Bar Styles */
.mobile-progress {
display: none;
width: 100%;
padding: 0 20px;
margin: 20px 0;
}

.mobile-progress-bar {
width: 100%;
height: 4px;
background: #3d3f46;
border-radius: 2px;
position: relative;
overflow: hidden;
}

.mobile-progress-fill {
position: absolute;
height: 100%;
background: #7c4bda;
border-radius: 2px;
transition: width 0.3s ease;
}

.mobile-progress-text {
color: var(--secondary-color);
font-size: 12px;
margin-top: 8px;
text-align: center;
}

@media (max-width: 768px) {
.timeline-container {
display: none;
}

.mobile-progress {
display: block;
}
}

/* Add these new responsive styles */
@media (min-width: 769px) and (max-width: 1024px) {
.container {
max-width: 90%;
margin: 30px auto;
}

.logo-container img {
max-width: 300px;
}


}

@media (min-width: 1025px) {
.container {
max-width: 800px !important;
}
}

/* Add smooth transitions for better UX */
.step {
transition: opacity 0.3s ease-in-out;
}

input, select, textarea, button {
transition: all 0.3s ease;
}

/* Improve touch targets for mobile */
@media (max-width: 768px) {
.unit-btn {
padding: 15px 30px;
}

select {
height: 55px;
}

.button-wrapper {
padding: 12px 20px;
}
}

/* Improve form layout on mobile */
@media (max-width: 768px) {
.measurement-section {
width: 100%;
padding: 0 10px;
}

.measurement-inputs {
margin: 10px 0;
}

.input-group {
width: 100%;
}

.unit-label {
right: 15px;
margin-top: 15px;
}
}

/* Improve button spacing on mobile */
@media (max-width: 768px) {
.button-container {
margin-top: 30px;
padding: 0 10px;
}

.next {
margin-top: 10px;
}
}

/* Improve select dropdowns on mobile */
@media (max-width: 768px) {
select {
width: 100%;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
background-repeat: no-repeat;
background-position: right 10px center;
background-size: 20px;
padding-right: 40px;
}
}

/* Update responsive styles for buttons */
@media (max-width: 768px) {
.button-container {
flex-direction: column;
gap: 10px;
}

.button, .next {
width: 100%;
height: 45px;
}

.button-wrapper {
height: 100%;
}

.text, .icon {
height: 100%;
}
}

@media (min-width: 769px) {
.button-container {
flex-direction: row;
justify-content: space-between;
}

.button {
margin-right: auto;
}

.next {
margin-left: auto;
}
}

/* Remove these tooltip-related styles */
.button::before,
.button::after {
display: none;
}

@media (max-width: 768px) {
.container {
max-width: 100%;
margin: 10px auto;
padding: 10px;
}

.logo-container {
padding: 0 10px;
}

.logo-container img {
    max-width: 264px;
width: 100%;
height: auto;
    MARGIN-TOP: 7PX;
}

h1 {
font-size: 30px;
margin: 15px 0;
padding: 0 10px;
}

input, select, textarea {
width: calc(100% - 20px) !important;
margin: 10px 10px;
height: 55px !important;
font-size: 18px;
}

.button-container {
padding: 0 10px;
}

.mobile-progress {
padding: 0 10px;
}
}

/* Add responsive styles */
@media (max-width: 768px) {
.loader-container {
padding: 15px;
}

.loader-message {
margin-top: 20px;
padding: 0 10px;
}

.loader-main-text {
font-size: 22px;
margin-bottom: 10px;
}

.loader-sub-text {
font-size: 14px;
}

/* Adjust box size for mobile */
.boxes {
--size: 24px;
transform: rotateX(60deg) rotateZ(45deg) rotateY(0deg) translateZ(0px) scale(0.8);
}
}

@media (max-width: 480px) {
.loader-main-text {
font-size: 20px;
}

.loader-sub-text {
font-size: 13px;
}

.boxes {
--size: 20px;
transform: rotateX(60deg) rotateZ(45deg) rotateY(0deg) translateZ(0px) scale(0.7);
}
}

/* Add smooth scaling for the boxes */
.boxes {
transform-origin: center center;
transition: transform 0.3s ease;
}

/* Add responsive styles */
@media (max-width: 768px) {
    .switch {
        width: 35px;
        height: 20px;
        top: 15px;
        right: 15px;
    }

    .slider:before {
        height: 16px;
        width: 16px;
        left: 2px;
        bottom: 2px;
    }

    .sun svg {
        width: 12px;
        height: 12px;
        top: 4px;
        left: 20px;
    }

    .moon svg {
        width: 12px;
        height: 12px;
        top: 4px;
        left: 4px;
    }

    .input:checked + .slider:before {
        transform: translateX(15px);
    }
}

@media (max-width: 480px) {
    .switch {
        width: 30px;
        height: 18px;
        top: 10px;
        right: 10px;
    }

    .slider:before {
        height: 14px;
        width: 14px;
    }

    .sun svg {
        width: 10px;
        height: 10px;
        top: 4px;
        left: 17px;
    }

    .moon svg {
        width: 10px;
        height: 10px;
        top: 4px;
        left: 4px;
    }

    .input:checked + .slider:before {
        transform: translateX(12px);
    }
}

/* Info Cards Layout */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
    padding: 0 20px;
    perspective: 1000px;
}

.info-card {
    background: var(--quinary-color);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(124, 75, 218, 0.1);
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(124, 75, 218, 0.03), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 15px 30px rgba(124, 75, 218, 0.15);
    border-color: rgba(124, 75, 218, 0.2);
}

.info-card:hover::before {
    transform: translateX(100%);
}

.info-card label {
    display: block;
    color: var(--quaternary-color);
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    transform: translateZ(20px);
}

.info-card:hover label {
    color: #7c4bda;
    transform: translateZ(30px);
}

.info-card input,
.info-card select {
    width: 100%;
    margin: 0;
    background: var(--primary-color);
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.info-card input:focus,
.info-card select:focus {
    border-color: #7c4bda;
    box-shadow: 0 0 0 4px rgba(124, 75, 218, 0.1);
    transform: translateZ(20px);
}

.info-card input::placeholder {
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.info-card input:focus::placeholder {
    opacity: 0.7;
    transform: translateX(10px);
}

/* Add floating label effect */
.info-card {
    position: relative;
}

.info-card label {
    position: absolute;
    top: 25px;
    left: 25px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.info-card input:focus + label,
.info-card input:not(:placeholder-shown) + label,
.info-card select:focus + label,
.info-card select:not([value=""]) + label {
    top: 0;
    left: 15px;
    font-size: 14px;
    color: #7c4bda;
    background: var(--quinary-color);
    padding: 0 5px;
    border-radius: 4px;
}

/* Add ripple effect on click */
.info-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(124, 75, 218, 0.3);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.info-card:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(100, 100);
        opacity: 0;
    }
}

/* Add glow effect on focus */
.info-card:focus-within {
    box-shadow: 0 0 20px rgba(124, 75, 218, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .info-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
        margin: 30px 0;
    }

    .info-card {
        padding: 20px;
    }

    .info-card:hover {
        transform: translateY(-5px);
    }
}

/* Dark mode adjustments */
.dark-mode .info-card {
    background: var(--quinary-color);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .info-card:hover {
    border-color: rgba(124, 75, 218, 0.3);
}

.dark-mode .info-card input,
.dark-mode .info-card select {
    background: var(--primary-color);
    color: var(--quaternary-color);
}

/* Form Container */
.form-container {
    background: var(--primary-color);
    border-radius: 30px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(124, 75, 218, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.form-container:hover {
    box-shadow: 0 25px 50px rgba(124, 75, 218, 0.15);
    border-color: rgba(124, 75, 218, 0.2);
}

/* Gender Selection */
.gender-selection {
    margin-top: 40px;
    padding: 20px;
    background: var(--quinary-color);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.gender-selection label {
    display: block;
    color: var(--quaternary-color);
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 500;
}

.gender-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 15px;
}

.gender-card {
    background: var(--primary-color);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
    z-index: 1;
}

.gender-card * {
    pointer-events: none;
}

.gender-card:hover {
    transform: translateY(-5px);
    border-color: rgba(124, 75, 218, 0.2);
    box-shadow: 0 10px 20px rgba(124, 75, 218, 0.1);
}

.gender-card.selected {
    background: rgba(124, 75, 218, 0.1);
    border-color: #7c4bda;
    box-shadow: 0 10px 20px rgba(124, 75, 218, 0.15);
}

.gender-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--quinary-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.gender-card:hover .gender-icon {
    transform: scale(1.1);
    background: rgba(124, 75, 218, 0.1);
}

.gender-card.selected .gender-icon {
    background: #7c4bda;
    color: white;
}

.gender-icon svg {
    width: 30px;
    height: 30px;
    transition: all 0.3s ease;
}

.gender-card span {
    display: block;
    margin-top: 10px;
    font-size: 16px;
    color: var(--quaternary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.gender-card:hover span {
    color: #7c4bda;
}

.gender-card.selected span {
    color: #7c4bda;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-container {
        padding: 20px;
        margin: 15px 0;
    }

    .gender-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gender-card {
        padding: 15px;
    }

    .gender-icon {
        width: 50px;
        height: 50px;
    }

    .gender-icon svg {
        width: 25px;
        height: 25px;
    }
}

/* Dark mode adjustments */
.dark-mode .form-container {
    background: var(--primary-color);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .gender-selection {
    background: var(--quinary-color);
}

.dark-mode .gender-card {
    background: var(--primary-color);
}

.dark-mode .gender-icon {
    background: var(--quinary-color);
}

/* Add shake animation for gender cards */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.gender-card.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
    border-color: #ff4444;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.2);
}

.gender-card.shake .gender-icon {
    background: rgba(255, 68, 68, 0.1);
}

.gender-card.shake span {
    color: #ff4444;
}

/* Goals Section */
.goals-container {
    background: var(--primary-color);
    border-radius: 30px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(124, 75, 218, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.goal-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.goal-card {
    background: linear-gradient(135deg, #f8f6ff 60%, #e9e3fa 100%);
    border: 2px solid rgba(124, 75, 218, 0.08);
    border-radius: 18px;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    cursor: pointer;
    transition: box-shadow 0.3s, border-color 0.3s, transform 0.2s;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    box-shadow: 0 2px 12px 0 rgba(124, 75, 218, 0.07), 0 1.5px 6px 0 rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    flex-direction: row;
    text-align: left;
}

.goal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(124, 75, 218, 0.03), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.goal-card:hover {
    transform: translateY(-4px) scale(1.025);
    border-color: #7c4bda;
    box-shadow: 0 8px 32px 0 rgba(124, 75, 218, 0.13), 0 2px 8px 0 rgba(0,0,0,0.06);
    z-index: 2;
}

.goal-card:hover::before {
    transform: translateX(100%);
}

.goal-card.selected {
    border-color: #7c4bda;
    background: linear-gradient(135deg, #e9e3fa 60%, #d1c4e9 100%);
    color: #3e0bcd;
    box-shadow: 0 8px 32px 0 rgba(124, 75, 218, 0.18), 0 2px 8px 0 rgba(0,0,0,0.09);
    transform: scale(1.035);
}

.goal-card.selected .goal-icon {
    background: linear-gradient(135deg, #7c4bda 60%, #b39ddb 100%);
    color: #fff;
}

.goal-card.selected .goal-icon svg {
    stroke-width: 2.2;
    color: #fff;
}

.goal-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    color: #7c4bda;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ede7f6 60%, #f3e5f5 100%);
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 2px 8px 0 rgba(124, 75, 218, 0.08);
}

.goal-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.7;
    transition: all 0.3s;
}

.goal-card:hover .goal-icon {
    transform: scale(1.13) rotate(-6deg);
    background: linear-gradient(135deg, #b39ddb 60%, #7c4bda 100%);
    color: #fff;
}

.goal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.goal-content h3 {
    margin: 0 0 0.4rem 0;
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: inherit;
}

.goal-content p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.8;
    line-height: 1.5;
    color: #3e0bcd;
}

.goal-card:hover h3,
.goal-card.selected h3 {
    color: #7c4bda;
}

.goal-card:hover p,
.goal-card.selected p {
    color: var(--quaternary-color);
}

/* Target Weight Container */
.target-weight-container {
    background: var(--quinary-color);
    border-radius: 20px;
    padding: 25px;
    margin-top: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.target-weight-container h2 {
    margin: 0 0 20px;
    font-size: 18px;
    color: var(--quaternary-color);
}

.target-weight-input {
    position: relative;
    max-width: 200px;
    margin: 0 auto;
}

.target-weight-input input {
    width: 100%;
    padding-right: 45px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
}

.target-weight-input .unit-label {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    font-size: 16px;
    pointer-events: none;
}

/* Shake animation for goal cards */
.goal-card.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
    border-color: #ff4444;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.2);
}

.goal-card.shake .goal-icon {
    background: rgba(255, 68, 68, 0.1);
}

.goal-card.shake h3 {
    color: #ff4444;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .goals-container {
        padding: 20px;
    }

    .goal-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .goal-card {
        padding: 20px;
    }

    .goal-icon {
        width: 60px;
        height: 60px;
    }

    .goal-icon svg {
        width: 30px;
        height: 30px;
    }

    .goal-content h3 {
        font-size: 18px;
    }

    .goal-content p {
        font-size: 13px;
    }
}

/* Dark mode adjustments */
.dark-mode .goals-container {
    background: var(--primary-color);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .goal-card {
    background: linear-gradient(135deg, #2d223a 60%, #3e2c54 100%);
    border-color: rgba(124, 75, 218, 0.18);
    color: #e0d7f7;
}

.dark-mode .goal-card.selected {
    background: linear-gradient(135deg, #3e2c54 60%, #7c4bda 100%);
    color: #fff;
}

.dark-mode .goal-content p {
    color: #e0d7f7;
}

.dark-mode .goal-icon {
    background: linear-gradient(135deg, #3e2c54 60%, #7c4bda 100%);
    color: #fff;
}

.dark-mode .goal-card.selected .goal-icon {
    background: linear-gradient(135deg, #7c4bda 60%, #b39ddb 100%);
    color: #fff;
}

/* Body Information Section */
.body-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.units-selection {
    display: flex;
    gap: 20px;
    margin: 20px 0 40px;
    justify-content: center;
}

.unit-pair {
    display: flex;
    background: var(--quinary-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.unit-pair:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.unit-btn {
    padding: 12px 24px;
    cursor: pointer;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--fifth-color);
}

.unit-btn svg {
    width: 16px;
    height: 16px;
    transition: all 0.3s ease;
}

.unit-btn:hover {
    color: #7c4bda;
}

.unit-btn.active {
    background: var(--quinary-color);
    color: var(--quaternary-color);
    font-weight: 500;
}

.unit-btn.active:hover {
    color: #7c4bda;
}

.measurement-section {
    width: 100%;
    max-width: 800px;
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 15px;
    box-sizing: border-box;
}

.measurement-card {
    background: var(--quinary-color);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(124, 75, 218, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.measurement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(124, 75, 218, 0.15);
    border-color: rgba(124, 75, 218, 0.2);
}

.measurement-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.measurement-header svg {
    width: 24px;
    height: 24px;
    color: #7c4bda;
}

.measurement-header h2 {
    margin: 0;
    font-size: 20px;
    color: var(--quaternary-color);
    font-weight: 500;
}

.unit-label {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .units-selection {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .unit-pair {
        width: 100%;
        max-width: 300px;
    }

    .unit-btn {
        padding: 10px 15px;
        font-size: 14px;
    }

    .measurement-header svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .units-selection {
        gap: 10px;
    }

    .unit-pair {
        max-width: 250px;
    }

    .unit-btn svg {
        width: 14px;
        height: 14px;
    }

    .measurement-header svg {
        width: 18px;
        height: 18px;
    }
}

/* Activity Section */
.activity-section {
    background: var(--primary-color);
    border-radius: 30px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(124, 75, 218, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.activity-section:hover {
    box-shadow: 0 25px 50px rgba(124, 75, 218, 0.15);
    border-color: rgba(124, 75, 218, 0.2);
}

.activity-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.activity-card {
    background: linear-gradient(135deg, #f8f6ff 60%, #e9e3fa 100%);
    border: 2px solid rgba(124, 75, 218, 0.08);
    border-radius: 18px;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    cursor: pointer;
    transition: box-shadow 0.3s, border-color 0.3s, transform 0.2s;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    box-shadow: 0 2px 12px 0 rgba(124, 75, 218, 0.07), 0 1.5px 6px 0 rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    flex-direction: row;
    text-align: left;
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(124, 75, 218, 0.03), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.activity-card:hover {
    transform: translateY(-4px) scale(1.025);
    border-color: #7c4bda;
    box-shadow: 0 8px 32px 0 rgba(124, 75, 218, 0.13), 0 2px 8px 0 rgba(0,0,0,0.06);
    z-index: 2;
}

.activity-card:hover::before {
    transform: translateX(100%);
}

.activity-card.selected {
    border-color: #7c4bda;
    background: linear-gradient(135deg, #e9e3fa 60%, #d1c4e9 100%);
    color: #3e0bcd;
    box-shadow: 0 8px 32px 0 rgba(124, 75, 218, 0.18), 0 2px 8px 0 rgba(0,0,0,0.09);
    transform: scale(1.035);
}

.activity-card.selected .activity-icon {
    background: linear-gradient(135deg, #7c4bda 60%, #b39ddb 100%);
    color: #fff;
}

.activity-card.selected .activity-icon svg {
    stroke-width: 2.2;
    color: #fff;
}

.activity-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    color: #7c4bda;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ede7f6 60%, #f3e5f5 100%);
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 2px 8px 0 rgba(124, 75, 218, 0.08);
}

.activity-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.7;
    transition: all 0.3s;
}

.activity-card:hover .activity-icon {
    transform: scale(1.13) rotate(-6deg);
    background: linear-gradient(135deg, #b39ddb 60%, #7c4bda 100%);
    color: #fff;
}

.activity-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.activity-content h3 {
    margin: 0 0 0.4rem 0;
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: inherit;
}

.activity-content p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.8;
    line-height: 1.5;
    color: #3e0bcd;
}

.activity-card:hover h3,
.activity-card.selected h3 {
    color: #7c4bda;
}

.activity-card:hover p,
.activity-card.selected p {
    color: var(--quaternary-color);
}

/* Shake animation for activity cards */
.activity-card.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
    border-color: #ff4444;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.2);
}

.activity-card.shake .activity-icon {
    background: rgba(255, 68, 68, 0.1);
}

.activity-card.shake h3 {
    color: #ff4444;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .activity-section {
        padding: 20px;
    }

    .activity-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .activity-card {
        padding: 20px;
    }

    .activity-icon {
        width: 60px;
        height: 60px;
    }

    .activity-icon svg {
        width: 30px;
        height: 30px;
    }

    .activity-content h3 {
        font-size: 18px;
    }

    .activity-content p {
        font-size: 13px;
    }
}

/* Dark mode adjustments */
.dark-mode .activity-section {
    background: var(--primary-color);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .activity-card {
    background: linear-gradient(135deg, #2d223a 60%, #3e2c54 100%);
    border-color: rgba(124, 75, 218, 0.18);
    color: #e0d7f7;
}

.dark-mode .activity-card.selected {
    background: linear-gradient(135deg, #3e2c54 60%, #7c4bda 100%);
    color: #fff;
}

.dark-mode .activity-content p {
    color: #e0d7f7;
}

.dark-mode .activity-icon {
    background: linear-gradient(135deg, #3e2c54 60%, #7c4bda 100%);
    color: #fff;
}

.dark-mode .activity-card.selected .activity-icon {
    background: linear-gradient(135deg, #7c4bda 60%, #b39ddb 100%);
    color: #fff;
}

/* Nationality Section */
.nationality-section {
    background: var(--primary-color);
    border-radius: 30px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(124, 75, 218, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.nationality-section:hover {
    box-shadow: 0 25px 50px rgba(124, 75, 218, 0.15);
    border-color: rgba(124, 75, 218, 0.2);
}

.nationality-input-container {
    position: relative;
    max-width: 500px;
    margin: 20px auto;
}

.nationality-input {
    width: 100%;
    padding: 20px;
    padding-left: 60px;
    font-size: 18px;
    background: var(--quinary-color);
    border: 2px solid transparent;
    border-radius: 15px;
    color: var(--quaternary-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.nationality-input:focus {
    border-color: #7c4bda;
    box-shadow: 0 0 0 4px rgba(124, 75, 218, 0.1);
    outline: none;
}

.nationality-input::placeholder {
    color: var(--secondary-color);
    font-weight: 500;
}

.nationality-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    color: #7c4bda;
    pointer-events: none;
}

.nationality-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--quinary-color);
    border-radius: 15px;
    margin-top: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.nationality-suggestions.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.suggestion-item {
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggestion-item:hover {
    background: rgba(124, 75, 218, 0.1);
    color: #7c4bda;
}

.suggestion-item.selected {
    background: rgba(124, 75, 218, 0.1);
    color: #7c4bda;
    font-weight: 500;
}

.suggestion-item svg {
    width: 20px;
    height: 20px;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.suggestion-item:hover svg,
.suggestion-item.selected svg {
    color: #7c4bda;
}

/* Shake animation for nationality input */
.nationality-input.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
    border-color: #ff4444;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nationality-section {
        padding: 20px;
    }

    .nationality-input-container {
        max-width: 100%;
    }

    .nationality-input {
        padding: 15px;
        padding-left: 50px;
        font-size: 16px;
    }

    .nationality-icon {
        width: 20px;
        height: 20px;
        left: 15px;
    }

    .suggestion-item {
        padding: 12px 15px;
    }
}

/* Dark mode adjustments */
.dark-mode .nationality-section {
    background: var(--primary-color);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .nationality-input {
    background: var(--quinary-color);
    color: var(--quaternary-color);
}

.dark-mode .nationality-suggestions {
    background: var(--quinary-color);
}

.dark-mode .suggestion-item:hover {
    background: rgba(124, 75, 218, 0.15);
}

.diet-section {
    width: 100%;
    max-width: 1200px;
    margin: 2.5rem auto 2rem auto;
    padding: 0 1rem;
}

.diet-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.diet-card {
    background: linear-gradient(135deg, #f8f6ff 60%, #e9e3fa 100%);
    border: 2px solid rgba(124, 75, 218, 0.08);
    border-radius: 18px;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    cursor: pointer;
    transition: box-shadow 0.3s, border-color 0.3s, transform 0.2s;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    box-shadow: 0 2px 12px 0 rgba(124, 75, 218, 0.07), 0 1.5px 6px 0 rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.diet-card:hover {
    transform: translateY(-4px) scale(1.025);
    border-color: #7c4bda;
    box-shadow: 0 8px 32px 0 rgba(124, 75, 218, 0.13), 0 2px 8px 0 rgba(0,0,0,0.06);
    z-index: 2;
}

.diet-card.selected {
    border-color: #7c4bda;
    background: linear-gradient(135deg, #e9e3fa 60%, #d1c4e9 100%);
    color: #3e0bcd;
    box-shadow: 0 8px 32px 0 rgba(124, 75, 218, 0.18), 0 2px 8px 0 rgba(0,0,0,0.09);
    transform: scale(1.035);
}

.diet-card.selected .diet-icon {
    background: linear-gradient(135deg, #7c4bda 60%, #b39ddb 100%);
    color: #fff;
}

.diet-card.selected .diet-icon svg {
    stroke-width: 2.2;
    color: #fff;
}

.diet-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    color: #7c4bda;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ede7f6 60%, #f3e5f5 100%);
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 2px 8px 0 rgba(124, 75, 218, 0.08);
}

.diet-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.7;
    transition: all 0.3s;
}

.diet-card:hover .diet-icon {
    transform: scale(1.13) rotate(-6deg);
    background: linear-gradient(135deg, #b39ddb 60%, #7c4bda 100%);
    color: #fff;
}

.diet-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.diet-content h3 {
    margin: 0 0 0.4rem 0;
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: inherit;
}

.diet-content p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.8;
    line-height: 1.5;
    color: #3e0bcd;
}

@media (max-width: 900px) {
    .diet-cards {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .diet-cards {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .diet-card {
        padding: 1.2rem 1rem 1rem 1rem;
        width: 80%;
    }
    .diet-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        padding: 6px;
        border-radius: 10px;
    }
    .diet-content h3 {
        font-size: 1.05rem;
    }
    .diet-content p {
        font-size: 0.92rem;
    }
}

/* Dark mode for diet cards */
.dark-mode .diet-card {
    background: linear-gradient(135deg, #2d223a 60%, #3e2c54 100%);
    border-color: rgba(124, 75, 218, 0.18);
    color: #e0d7f7;
}
.dark-mode .diet-card.selected {
    background: linear-gradient(135deg, #3e2c54 60%, #7c4bda 100%);
    color: #fff;
}
.dark-mode .diet-content p {
    color: #e0d7f7;
}
.dark-mode .diet-icon {
    background: linear-gradient(135deg, #3e2c54 60%, #7c4bda 100%);
    color: #fff;
}
.dark-mode .diet-card.selected .diet-icon {
    background: linear-gradient(135deg, #7c4bda 60%, #b39ddb 100%);
    color: #fff;
}

.merged-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2.5rem 0 2rem 0;
    background: linear-gradient(135deg, #f8f6ff 60%, #e9e3fa 100%);
    border-radius: 24px;
    box-shadow: 0 4px 32px 0 rgba(124, 75, 218, 0.08), 0 2px 8px 0 rgba(0,0,0,0.03);
    padding: 2.5rem 2rem;
}
.merged-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px 0 rgba(124, 75, 218, 0.07);
    padding: 1.5rem 1.2rem;
    position: relative;
    transition: box-shadow 0.3s, background 0.3s;
}
.merged-info-card:focus-within {
    box-shadow: 0 6px 24px 0 rgba(124, 75, 218, 0.13);
    background: #f3e5f5;
}
.merged-info-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    padding: 10px;
    background: linear-gradient(135deg, #ede7f6 60%, #f3e5f5 100%);
    box-shadow: 0 2px 8px 0 rgba(124, 75, 218, 0.08);
    color: #7c4bda;
    font-size: 1.5rem;
    transition: background 0.3s, color 0.3s;
}
.merged-info-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.7;
}
.merged-info-icon.allergy { background: linear-gradient(135deg, #ffe0e3 60%, #f3e5f5 100%); color: #e57373; }
.merged-info-icon.medical { background: linear-gradient(135deg, #e1f5fe 60%, #ede7f6 100%); color: #039be5; }
.merged-info-icon.additional { background: linear-gradient(135deg, #ede7f6 60%, #d1c4e9 100%); color: #7c4bda; }
.merged-info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.merged-info-content label {
    font-size: 1.08rem;
    font-weight: 600;
    color: #3e0bcd;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.merged-info-content label span {
    font-size: 0.95em;
    font-weight: 400;
    color: #7c4bda;
    margin-left: 0.3em;
}
.merged-info-content input,
.merged-info-content textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    background: #faf8ff;
    font-size: 1rem;
    color: #3e0bcd;
    margin-bottom: 0.2rem;
    transition: border 0.3s, background 0.3s;
    resize: none;
    box-shadow: 0 1px 4px 0 rgba(124, 75, 218, 0.04);
}
.merged-info-content input:focus,
.merged-info-content textarea:focus {
    border: 2px solid #7c4bda;
    background: #f3e5f5;
    outline: none;
}
.merged-info-content textarea {
    min-height: 60px;
    max-height: 180px;
}
@media (max-width: 900px) {
    .merged-info-section {
        padding: 1.5rem 0.5rem;
    }
    .merged-info-card {
        padding: 1.1rem 0.7rem;
    }
    .merged-info-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        padding: 6px;
        border-radius: 10px;
    }
}
@media (max-width: 600px) {
    .merged-info-section {
        padding: 0.7rem 0.1rem;
        gap: 1.1rem;
    }
    .merged-info-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.7rem;
    }
    .merged-info-content label {
        font-size: 1rem;
    }
    .merged-info-content input,
    .merged-info-content textarea {
        font-size: 0.97rem;
        padding: 10px 10px;
    }
}
/* Dark mode for merged info */
.dark-mode .merged-info-section {
    background: linear-gradient(135deg, #2d223a 60%, #3e2c54 100%);
}
.dark-mode .merged-info-card {
    background: #2d223a;
    box-shadow: 0 2px 12px 0 rgba(124, 75, 218, 0.13);
}
.dark-mode .merged-info-content label {
    color: #e0d7f7;
}
.dark-mode .merged-info-content input,
.dark-mode .merged-info-content textarea {
    background: #3e2c54;
    color: #e0d7f7;
    border: 2px solid #4b3a6a;
}
.dark-mode .merged-info-content input:focus,
.dark-mode .merged-info-content textarea:focus {
    background: #4b3a6a;
    border: 2px solid #b39ddb;
}

.merged-section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 2.2rem;
  position: relative;
  color: #3e0bcd;
}
.section-gradient-bar {
  width: 120px;
  height: 6px;
  margin: 0.7rem auto 0 auto;
  border-radius: 3px;
  background: linear-gradient(90deg, #7c4bda 0%, #b39ddb 100%);
  box-shadow: 0 2px 8px 0 rgba(124, 75, 218, 0.18);
}
.merged-cards-row {
  display: flex;
  gap: 2.2rem;
  justify-content: center;
  align-items: stretch;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.merged-big-card {
  background: linear-gradient(135deg, #f8f6ff 60%, #e9e3fa 100%);
  border: 2px solid rgba(124, 75, 218, 0.08);
  border-radius: 22px;
  box-shadow: 0 4px 24px 0 rgba(124, 75, 218, 0.10), 0 2px 8px 0 rgba(0,0,0,0.03);
  padding: 2.2rem 1.5rem 1.5rem 1.5rem;
  min-width: 270px;
  max-width: 350px;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.2s;
  position: relative;
}
.merged-big-card:hover, .merged-big-card:focus-within {
  box-shadow: 0 12px 40px 0 rgba(124, 75, 218, 0.18), 0 2px 8px 0 rgba(0,0,0,0.09);
  border-color: #7c4bda;
  transform: translateY(-6px) scale(1.03);
  z-index: 2;
}
.merged-big-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 16px;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 2px 8px 0 rgba(124, 75, 218, 0.10);
  background: linear-gradient(135deg, #ede7f6 60%, #f3e5f5 100%);
  color: #7c4bda;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}
.merged-big-icon.allergy { background: linear-gradient(135deg, #ffe0e3 60%, #f3e5f5 100%); color: #e57373; }
.merged-big-icon.medical { background: linear-gradient(135deg, #e1f5fe 60%, #ede7f6 100%); color: #039be5; }
.merged-big-icon.additional { background: linear-gradient(135deg, #ede7f6 60%, #d1c4e9 100%); color: #7c4bda; }
.merged-big-icon svg { width: 38px; height: 38px; }
.merged-big-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.merged-big-content label {
  font-size: 1.13rem;
  font-weight: 700;
  color: #3e0bcd;
  margin-bottom: 0.7rem;
  letter-spacing: 0.01em;
}
.merged-big-content label span {
  font-size: 0.98em;
  font-weight: 400;
  color: #7c4bda;
  margin-left: 0.3em;
}
.merged-big-content input,
.merged-big-content textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid #e0e0e0;
  background: #faf8ff;
  font-size: 1.05rem;
  color: #3e0bcd;
  margin-bottom: 0.2rem;
  transition: border 0.3s, background 0.3s;
  resize: none;
  box-shadow: 0 1px 4px 0 rgba(124, 75, 218, 0.04);
}
.merged-big-content input:focus,
.merged-big-content textarea:focus {
  border: 2px solid #7c4bda;
  background: #f3e5f5;
  outline: none;
}
.merged-big-content textarea {
  min-height: 70px;
  max-height: 200px;
}
@media (max-width: 900px) {
  .merged-cards-row {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
  }
  .merged-big-card {
    max-width: 100%;
    min-width: 0;
  }
}
.dark-mode .merged-section-title { color: #e0d7f7; }
.dark-mode .section-gradient-bar { background: linear-gradient(90deg, #7c4bda 0%, #3e0bcd 100%); }
.dark-mode .merged-big-card {
  background: linear-gradient(135deg, #2d223a 60%, #3e2c54 100%);
  border-color: rgba(124, 75, 218, 0.18);
  color: #e0d7f7;
}
.dark-mode .merged-big-content label { color: #e0d7f7; }
.dark-mode .merged-big-content input,
.dark-mode .merged-big-content textarea {
  background: #3e2c54;
  color: #e0d7f7;
  border: 2px solid #4b3a6a;
}
.dark-mode .merged-big-content input:focus,
.dark-mode .merged-big-content textarea:focus {
  background: #4b3a6a;
  border: 2px solid #b39ddb;
}

.merged-section-subtitle {
  text-align: center;
  font-size: 1.13rem;
  color: #7c4bda;
  margin-top: 0.5rem;
  margin-bottom: 1.7rem;
  font-weight: 500;
  opacity: 0.92;
}
.merged-cards-bg-accent {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 40%, #b39ddb33 0%, #7c4bda11 60%, transparent 100%);
  filter: blur(32px) saturate(1.2);
  opacity: 0.7;
}
.merged-cards-row {
  position: relative;
  z-index: 1;
}
.animated-card {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  animation: cardFadeIn 1.1s cubic-bezier(.33,1.5,.68,1) forwards;
}
.animated-card[data-animate="1"] { animation-delay: 0.18s; }
.animated-card[data-animate="2"] { animation-delay: 0.38s; }
.animated-card[data-animate="3"] { animation-delay: 0.58s; }
@keyframes cardFadeIn {
  to { opacity: 1; transform: none; }
}
.modern-card {
  transition: box-shadow 0.5s cubic-bezier(.33,1.5,.68,1), border-color 0.5s cubic-bezier(.33,1.5,.68,1), transform 0.4s cubic-bezier(.33,1.5,.68,1), min-height 0.4s, max-height 0.4s;
}
.modern-card:hover, .modern-card:focus-within {
  box-shadow: 0 16px 48px 0 rgba(124, 75, 218, 0.22), 0 2px 8px 0 rgba(0,0,0,0.13);
  border-image: linear-gradient(90deg, #7c4bda 0%, #b39ddb 100%) 1;
  border-width: 2.5px;
  border-style: solid;
  z-index: 2;
  transition: box-shadow 0.5s cubic-bezier(.33,1.5,.68,1), border-color 0.5s cubic-bezier(.33,1.5,.68,1), transform 0.4s cubic-bezier(.33,1.5,.68,1);
}
.modern-card-icon {
  transition: background 0.4s, color 0.4s, transform 0.5s cubic-bezier(.33,1.5,.68,1), box-shadow 0.5s cubic-bezier(.33,1.5,.68,1);
}
.modern-card:hover .modern-card-icon, .modern-card:focus-within .modern-card-icon {
  transform: scale(1.13) rotate(-8deg);
  box-shadow: 0 4px 16px 0 #b39ddb44;
  transition: transform 0.5s cubic-bezier(.33,1.5,.68,1), box-shadow 0.5s cubic-bezier(.33,1.5,.68,1);
}
.modern-floating-label-group label {
  transition: 0.33s cubic-bezier(.33,1.5,.68,1);
}
.modern-floating-label-group input:focus + label,
.modern-floating-label-group input:not(:placeholder-shown) + label,
.modern-floating-label-group textarea:focus + label,
.modern-floating-label-group textarea:not(:placeholder-shown) + label {
  transition: 0.33s cubic-bezier(.33,1.5,.68,1);
}
.modern-floating-label-group input,
.modern-floating-label-group textarea {
  transition: border 0.4s cubic-bezier(.33,1.5,.68,1), background 0.4s cubic-bezier(.33,1.5,.68,1), min-height 0.4s, max-height 0.4s;
}
.merged-big-card {
  border: 2.5px solid transparent;
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box;
  box-shadow: 0 4px 24px 0 rgba(124, 75, 218, 0.10), 0 2px 8px 0 rgba(0,0,0,0.03);
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.2s, border-image 0.3s;
}
.merged-big-card:hover, .merged-big-card:focus-within {
  box-shadow: 0 16px 48px 0 rgba(124, 75, 218, 0.22), 0 2px 8px 0 rgba(0,0,0,0.13);
  border-image: linear-gradient(90deg, #7c4bda 0%, #b39ddb 100%) 1;
  border-width: 2.5px;
  border-style: solid;
}
.animated-icon {
  transition: transform 0.35s cubic-bezier(.4,1.4,.6,1), box-shadow 0.3s;
}
.merged-big-card:hover .animated-icon, .merged-big-card:focus-within .animated-icon {
  transform: scale(1.13) rotate(-8deg);
  box-shadow: 0 4px 16px 0 #b39ddb44;
}
.floating-label-group {
  position: relative;
  margin-bottom: 1.2rem;
}
.floating-label-group input,
.floating-label-group textarea {
  width: 100%;
  padding: 16px 16px 16px 16px;
  border-radius: 12px;
  border: 2px solid #e0e0e0;
  background: #faf8ff;
  font-size: 1.07rem;
  color: #3e0bcd;
  transition: border 0.3s, background 0.3s;
  box-shadow: 0 1px 4px 0 rgba(124, 75, 218, 0.04);
  outline: none;
  resize: none;
}
.floating-label-group label {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: #7c4bda;
  font-size: 1.07rem;
  font-weight: 600;
  pointer-events: none;
  transition: 0.2s cubic-bezier(.4,1.4,.6,1);
  padding: 0 4px;
  opacity: 0.85;
}
.floating-label-group input:focus + label,
.floating-label-group input:not(:placeholder-shown) + label,
.floating-label-group textarea:focus + label,
.floating-label-group textarea:not(:placeholder-shown) + label {
  top: -12px;
  left: 10px;
  font-size: 0.93rem;
  color: #3e0bcd;
  background: #faf8ff;
  opacity: 1;
  padding: 0 6px;
  border-radius: 6px;
  font-weight: 700;
}
.floating-label-group input:focus,
.floating-label-group textarea:focus {
  border: 2px solid #7c4bda;
  background: #f3e5f5;
}
.floating-label-group textarea {
  min-height: 70px;
  max-height: 200px;
}
.floating-label-group input:active,
.floating-label-group textarea:active {
  box-shadow: 0 0 0 2px #b39ddb55;
}
@media (max-width: 900px) {
  .merged-cards-row {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
  }
  .merged-big-card {
    max-width: 100%;
    min-width: 0;
  }
  .merged-cards-bg-accent {
    filter: blur(18px) saturate(1.1);
  }
}
.dark-mode .merged-section-subtitle { color: #b39ddb; }
.dark-mode .merged-cards-bg-accent {
  background: radial-gradient(ellipse at 50% 40%, #7c4bda33 0%, #3e0bcd22 60%, transparent 100%);
}
.dark-mode .floating-label-group input,
.dark-mode .floating-label-group textarea {
  background: #3e2c54;
  color: #e0d7f7;
  border: 2px solid #4b3a6a;
}
.dark-mode .floating-label-group label {
  color: #b39ddb;
}
.dark-mode .floating-label-group input:focus + label,
.dark-mode .floating-label-group input:not(:placeholder-shown) + label,
.dark-mode .floating-label-group textarea:focus + label,
.dark-mode .floating-label-group textarea:not(:placeholder-shown) + label {
  color: #fff;
  background: #3e2c54;
}
.dark-mode .floating-label-group input:focus,
.dark-mode .floating-label-group textarea:focus {
  background: #4b3a6a;
  border: 2px solid #b39ddb;
}

.modern-row-cards {
  display: flex;
  gap: 2.2rem;
  justify-content: center;
  align-items: stretch;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.modern-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  background: linear-gradient(135deg, #f8f6ff 60%, #e9e3fa 100%);
  border: none !important;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(124, 75, 218, 0.07), 0 1.5px 6px 0 rgba(0,0,0,0.03);
  min-width: 320px;
  max-width: 400px;
  flex: 1 1 340px;
  padding: 2rem 1.5rem 1.5rem 1.2rem;
  margin: 0.7rem 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
  transform-origin: center;
  will-change: transform, box-shadow, border-color;
}

.modern-card:hover, .modern-card:focus-within {
  border: none !important;
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 0 24px 6px #b39ddb88,
    0 8px 32px 0 rgba(124, 75, 218, 0.18),
    0 2px 8px 0 rgba(0,0,0,0.09);
  z-index: 2;
  background: linear-gradient(135deg, #faf8ff 60%, #f0e7ff 100%);
}

.modern-card:active {
  transform: translateY(-2px) scale(0.98);
  transition-duration: 0.2s;
}

.modern-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 14px;
  margin-right: 1.3rem;
  margin-top: 0.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 2px 8px 0 rgba(124, 75, 218, 0.08);
  background: linear-gradient(135deg, #ede7f6 60%, #f3e5f5 100%);
  color: #7c4bda;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.modern-card-icon::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modern-card:hover .modern-card-icon::after {
  opacity: 1;
}

.modern-card:hover .modern-card-icon, .modern-card:focus-within .modern-card-icon {
  transform: scale(1.15) rotate(-8deg);
  background: linear-gradient(135deg, #b39ddb 60%, #7c4bda 100%);
  color: #fff;
  box-shadow: 
    0 4px 12px 0 rgba(124, 75, 218, 0.2),
    0 0 0 1px rgba(255,255,255,0.1);
}

.modern-floating-label-group input,
.modern-floating-label-group textarea {
  width: 100%;
  padding: 16px 14px 12px 14px;
  border-radius: 10px;
  border: 2px solid #e0e0e0;
  background: #faf8ff;
  font-size: 1.05rem;
  color: var(--primary-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 4px 0 rgba(124, 75, 218, 0.04);
  outline: none;
  resize: none;
  min-height: 54px;
  max-height: 220px;
}

.modern-card:hover .modern-floating-label-group input,
.modern-card:hover .modern-floating-label-group textarea {
  border-color: rgba(124, 75, 218, 0.3);
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(124, 75, 218, 0.08);
}

.modern-floating-label-group input:focus,
.modern-floating-label-group textarea:focus {
  border: 2px solid #7c4bda;
  background: #f3e5f5;
  box-shadow: 
    0 4px 12px 0 rgba(124, 75, 218, 0.1),
    0 0 0 1px rgba(124, 75, 218, 0.1);
}

.dark-mode .modern-card {
  background: linear-gradient(135deg, #2d223a 60%, #3e2c54 100%);
  border: none;
  color: #e0d7f7;
}

.dark-mode .modern-card:hover, .dark-mode .modern-card:focus-within {
  background: linear-gradient(135deg, #352a45 60%, #4a3a65 100%);
  box-shadow:
    0 0 32px 8px #7c4bda99,
    0 12px 40px 0 rgba(0, 0, 0, 0.3),
    0 4px 12px 0 rgba(0,0,0,0.2);
}

.dark-mode .modern-card:hover .modern-floating-label-group input,
.dark-mode .modern-card:hover .modern-floating-label-group textarea {
  border-color: rgba(124, 75, 218, 0.4);
  background: #3e2c54;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2);
}

.dark-mode .modern-floating-label-group input:focus,
.dark-mode .modern-floating-label-group textarea:focus {
  background: #4b3a6a;
  box-shadow: 
    0 4px 12px 0 rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(124, 75, 218, 0.3);
}

.modern-card-input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.modern-floating-label-group {
  position: relative;
  width: 100%;
  min-width: 0;
  transition: min-height 0.3s, max-height 0.3s;
}
.modern-floating-label-group input,
.modern-floating-label-group textarea {
  width: 100%;
  padding: 16px 14px 12px 14px;
  border-radius: 10px;
  border: 2px solid #e0e0e0;
  background: #faf8ff;
  font-size: 1.05rem;
  color: #a97dff;
  transition: border 0.3s, background 0.3s, min-height 0.3s, max-height 0.3s;
  box-shadow: 0 1px 4px 0 rgba(124, 75, 218, 0.04);
  outline: none;
  resize: none;
  min-height: 54px;
  max-height: 220px;
}
.modern-floating-label-group textarea {
  min-height: 80px;
  max-height: 220px;
}
.modern-floating-label-group label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: #7c4bda;
  font-size: 1.05rem;
  font-weight: 600;
  pointer-events: none;
  transition: 0.2s cubic-bezier(.4,1.4,.6,1);
  padding: 0 4px;
  opacity: 0.85;
  z-index: 2;
}
.modern-floating-label-group input:focus + label,
.modern-floating-label-group input:not(:placeholder-shown) + label,
.modern-floating-label-group textarea:focus + label,
.modern-floating-label-group textarea:not(:placeholder-shown) + label {
  top: -12px;
  left: 10px;
  font-size: 0.93rem;
  color: #3e0bcd;
  background: #faf8ff;
  opacity: 1;
  padding: 0 6px;
  border-radius: 6px;
  font-weight: 700;
  box-shadow: 0 2px 8px 0 #b39ddb11;
}
.modern-floating-label-group input:focus,
.modern-floating-label-group textarea:focus {
  border: 2px solid #7c4bda;
  background: #f3e5f5;
}
.modern-floating-label-group input:active,
.modern-floating-label-group textarea:active {
  box-shadow: 0 0 0 2px #b39ddb55;
}
@media (max-width: 900px) {
  .modern-row-cards {
    flex-direction: column;
    gap: 1.2rem;
    align-items: stretch;
    margin-bottom: 1.2rem;
    padding: 0;
  }
  .modern-card {
    max-width: 100%;
    min-width: 0;
    flex-direction: row;
    padding: 1.2rem 0.8rem 1.2rem 0.8rem;
    margin: 0.5rem 0;
  }
  .modern-card-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    margin-right: 1rem;
    font-size: 1.3rem;
    padding: 6px;
    border-radius: 10px;
  }
  .modern-card-icon svg {
    width: 22px;
    height: 22px;
  }
  .modern-floating-label-group label {
    font-size: 0.98rem;
    left: 12px;
  }
  .modern-floating-label-group input,
  .modern-floating-label-group textarea {
    font-size: 0.97rem;
    padding: 12px 10px 10px 10px;
    min-height: 44px;
  }
}
@media (max-width: 600px) {
  .modern-row-cards {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0 1vw;
  }
  .modern-card {
    padding: 0.1rem 0.1rem 0.1rem 0.1rem !important;
    margin: 0.2rem 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
    min-height: 0 !important;
    height: auto !important;
    flex: none !important;
    display: block !important;
  }
  .modern-card-input-group, .modern-floating-label-group {
    min-height: 0 !important;
    height: auto !important;
    flex: none !important;
    display: block !important;
  }
  .modern-floating-label-group input,
  .modern-floating-label-group textarea {
    font-size: 0.93rem !important;
    padding: 5px 5px 5px 5px !important;
    min-height: 20px !important;
    max-height: 50px !important;
    height: 32px !important;
  }
}
@media (max-width: 400px) {
  .modern-row-cards {
    gap: 0.2rem;
    margin-bottom: 0.2rem;
    padding: 0 0.5vw;
  }
  .modern-card {
    padding: 0.05rem 0.02rem 0.05rem 0.02rem !important;
    margin: 0.1rem 0 !important;
    min-height: 0 !important;
    height: auto !important;
    flex: none !important;
    display: block !important;
  }
  .modern-card-input-group, .modern-floating-label-group {
    min-height: 0 !important;
    height: auto !important;
    flex: none !important;
    display: block !important;
  }
  .modern-floating-label-group input,
  .modern-floating-label-group textarea {
    font-size: 0.85rem !important;
    padding: 3px 2px 3px 2px !important;
    min-height: 16px !important;
    max-height: 32px !important;
    height: 22px !important;
  }
}

/* Preview Panel Styles */
.preview-panel {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    background: linear-gradient(135deg, #f8f6ff 60%, #e9e3fa 100%);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(124, 75, 218, 0.15);
    padding: 1.5rem;
    z-index: 100;
    transition: all 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

.preview-header {
    margin-bottom: 1.5rem;
}

.preview-header h2 {
    font-size: 1.25rem;
    color: #3e0bcd;
    margin: 0 0 1rem 0;
    font-weight: 600;
}

.preview-progress {
    margin-top: 1rem;
}

.preview-progress-bar {
    height: 6px;
    background: rgba(124, 75, 218, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.preview-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7c4bda 0%, #3e0bcd 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.preview-progress-text {
    font-size: 0.875rem;
    color: #3e0bcd;
    opacity: 0.8;
}

.preview-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.preview-section {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid rgba(124, 75, 218, 0.1);
}

.preview-section h3 {
    font-size: 1rem;
    color: #3e0bcd;
    margin: 0 0 0.75rem 0;
    font-weight: 600;
}

.preview-info {
    font-size: 0.875rem;
    color: #3e0bcd;
    opacity: 0.8;
    line-height: 1.5;
}

.preview-placeholder {
    font-style: italic;
    opacity: 0.6;
}

.preview-info p {
    margin: 0.25rem 0;
}

/* Dark mode styles for preview panel */
.dark-mode .preview-panel {
    background: linear-gradient(135deg, #2d223a 60%, #3e2c54 100%);
}

.dark-mode .preview-header h2,
.dark-mode .preview-section h3,
.dark-mode .preview-info,
.dark-mode .preview-progress-text {
    color: #e0d7f7;
}

.dark-mode .preview-section {
    background: rgba(62, 44, 84, 0.5);
    border-color: rgba(124, 75, 218, 0.2);
}

/* Responsive styles for preview panel */
@media (max-width: 1400px) {
    .preview-panel {
        right: 1rem;
        width: 280px;
    }
}

@media (max-width: 1200px) {
    .preview-panel {
        display: none;
    }
}

h3{
color: #7c4bda;
}

/* Diet Profile Styles */
.diet-profile {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.25rem;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(124, 75, 218, 0.1) 0%, rgba(62, 11, 205, 0.1) 100%);
    border-radius: 12px;
    border: 1px solid rgba(124, 75, 218, 0.2);
}

.diet-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f6ff 0%, #e9e3fa 100%);
    border-radius: 50%;
    border: 2px solid rgba(124, 75, 218, 0.3);
    box-shadow: 0 4px 12px rgba(124, 75, 218, 0.15);
}

.profile-info {
    flex: 1;
}

.diet-type {
    font-size: 1.125rem;
    font-weight: 600;
    color: #3e0bcd;
    margin-bottom: 0.125rem;
}

.nationality {
    font-size: 0.8rem;
    color: #667eea;
    opacity: 0.8;
}

.profile-goal {
    display: flex;
    justify-content: center;
    margin: 0.25rem 0;
}

.goal-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.goal-badge.lose {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
}

.goal-badge.gain {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
}

.goal-badge.maintain {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.quick-tip {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
    border-radius: 10px;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.tip-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.tip-text {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.3;
    font-style: italic;
}

/* Dark mode styles for diet profile */
.dark-mode .profile-header {
    background: linear-gradient(135deg, rgba(124, 75, 218, 0.2) 0%, rgba(62, 11, 205, 0.2) 100%);
    border-color: rgba(124, 75, 218, 0.4);
}

.dark-mode .diet-icon {
    background: linear-gradient(135deg, #2d223a 0%, #3e2c54 100%);
    border-color: rgba(124, 75, 218, 0.5);
}

.dark-mode .diet-type {
    color: #e0d7f7;
}

.dark-mode .nationality {
    color: #b39ddb;
}

.dark-mode .quick-tip {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 152, 0, 0.15) 100%);
    border-color: rgba(255, 193, 7, 0.4);
}

.dark-mode .tip-text {
    color: #e0d7f7;
}

/* Responsive styles for diet profile */
@media (max-width: 768px) {
    .diet-profile {
        gap: 0.5rem;
        padding: 0.125rem;
    }
    
    .profile-header {
        padding: 0.5rem;
        gap: 0.5rem;
        border-radius: 10px;
    }
    
    .diet-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .diet-type {
        font-size: 1rem;
        margin-bottom: 0.1rem;
    }
    
    .nationality {
        font-size: 0.75rem;
    }
    
    .profile-goal {
        margin: 0.2rem 0;
    }
    
    .goal-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
        border-radius: 12px;
    }
    
    .quick-tip {
        padding: 0.5rem;
        gap: 0.4rem;
        border-radius: 8px;
    }
    
    .tip-icon {
        font-size: 0.9rem;
    }
    
    .tip-text {
        font-size: 0.75rem;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .diet-profile {
        gap: 0.4rem;
        padding: 0.1rem;
    }
    
    .profile-header {
        padding: 0.4rem;
        gap: 0.4rem;
        border-radius: 8px;
    }
    
    .diet-icon {
        width: 35px;
        height: 35px;
        font-size: 1.25rem;
    }
    
    .diet-type {
        font-size: 0.9rem;
        margin-bottom: 0.05rem;
    }
    
    .nationality {
        font-size: 0.7rem;
    }
    
    .profile-goal {
        margin: 0.15rem 0;
    }
    
    .goal-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
        border-radius: 10px;
        letter-spacing: 0.2px;
    }
    
    .quick-tip {
        padding: 0.4rem;
        gap: 0.3rem;
        border-radius: 6px;
    }
    
    .tip-icon {
        font-size: 0.8rem;
    }
    
    .tip-text {
        font-size: 0.7rem;
        line-height: 1.1;
    }
}

@media (max-width: 360px) {
    .diet-profile {
        gap: 0.3rem;
        padding: 0.05rem;
    }
    
    .profile-header {
        padding: 0.3rem;
        gap: 0.3rem;
        border-radius: 6px;
    }
    
    .diet-icon {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .diet-type {
        font-size: 0.8rem;
    }
    
    .nationality {
        font-size: 0.65rem;
    }
    
    .goal-badge {
        padding: 0.2rem 0.4rem;
        font-size: 0.65rem;
        border-radius: 8px;
    }
    
    .quick-tip {
        padding: 0.3rem;
        gap: 0.25rem;
    }
    
    .tip-icon {
        font-size: 0.75rem;
    }
    
    .tip-text {
        font-size: 0.65rem;
    }
}